﻿#pragma once 

#include "afxpropertygridctrl.h"
#include "DataSeting.h"

/////////////////////////////////////////////////////////////////////////////
// CMFCPropertyGridFileProperty object

class CMFCPropertyUserDlgProperty : public CMFCPropertyGridProperty
{
	DECLARE_DYNAMIC(CMFCPropertyUserDlgProperty)

// Construction
public:

	CMFCPropertyUserDlgProperty(const CString& strName, const CString& strFolderName, DWORD_PTR dwData = 0, LPCTSTR lpszDescr = NULL, LPCTSTR lpszKey = L"");
	CMFCPropertyUserDlgProperty(const CString& strName, BOOL bOpenFileDialog, const CString& strFileName, LPCTSTR lpszDefExt = NULL,
		DWORD dwFlags = OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT, LPCTSTR lpszFilter = NULL, LPCTSTR lpszDescr = NULL, DWORD_PTR dwData = 0);
	virtual ~CMFCPropertyUserDlgProperty();

// Overrides
public:
	virtual void OnClickButton(CPoint point);
	void SetDlgData(sEdit& edit);
// Attributes
protected:
	CString m_strKey;
	sEdit   m_sdata;
};